package com.shareyi.simpleserver.servlet;

import java.io.IOException;
import java.util.Map;

import com.shareyi.simpleserver.core.HttpRequest;
import com.shareyi.simpleserver.core.HttpResponse;

public abstract class  SimpleServlet implements Servlet {

			public abstract void init(Map<String,String> servletConfig)
			    throws ServletException;

			  public  Map<String,String> getServletConfig(){
				return null;
			  }

			  public abstract void service(HttpRequest httpRequest,HttpResponse httpResponse)
			    throws ServletException, IOException;

			  public  String getServletInfo(){
				  return "";
			  }
			  
			  public  void destroy(){
				  
			  }
}
